package com.jy.appmarket.screenlock.utils;

import android.hardware.Camera;


/** 
 * 类说明：   
 * @author  kalui.huang
 * @date    2015-4-16
 * @version 1.0
 */
public class CameraUtils {
	 public static boolean isCameraOpened() {   
         boolean isOpened = false;   
         Camera camera = null;   
         try {   
             camera = Camera.open();   
         } catch (Exception e) {   
             isOpened = true;   
         }   
         if (!isOpened) {   
             camera.release();   
             camera = null;   
         }   
         return isOpened;   
     } 

}
